package com.hm.manage.service.impl;

import java.util.List;
import com.hm.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hm.manage.mapper.CameraDelRecordMapper;
import com.hm.manage.domain.CameraDelRecord;
import com.hm.manage.service.ICameraDelRecordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 点位删除记录Service业务层处理
 * 
 * @author hm
 * @date 2025-03-27
 */
@Service
public class CameraDelRecordServiceImpl extends ServiceImpl<CameraDelRecordMapper,CameraDelRecord> implements ICameraDelRecordService
{
    @Autowired
    private CameraDelRecordMapper cameraDelRecordMapper;

    /**
     * 查询点位删除记录
     * 
     * @param id 点位删除记录主键
     * @return 点位删除记录
     */
    @Override
    public CameraDelRecord selectCameraDelRecordById(Long id)
    {
        return cameraDelRecordMapper.selectCameraDelRecordById(id);
    }

    /**
     * 查询点位删除记录列表
     * 
     * @param cameraDelRecord 点位删除记录
     * @return 点位删除记录
     */
    @Override
    public List<CameraDelRecord> selectCameraDelRecordList(CameraDelRecord cameraDelRecord)
    {
        return cameraDelRecordMapper.selectCameraDelRecordList(cameraDelRecord);
    }

    /**
     * 新增点位删除记录
     * 
     * @param cameraDelRecord 点位删除记录
     * @return 结果
     */
    @Override
    public int insertCameraDelRecord(CameraDelRecord cameraDelRecord)
    {
        //cameraDelRecord.setCreateTime(DateUtils.getNowDate());
        return cameraDelRecordMapper.insertCameraDelRecord(cameraDelRecord);
    }

    /**
     * 修改点位删除记录
     * 
     * @param cameraDelRecord 点位删除记录
     * @return 结果
     */
    @Override
    public int updateCameraDelRecord(CameraDelRecord cameraDelRecord)
    {
        //cameraDelRecord.setUpdateTime(DateUtils.getNowDate());
        return cameraDelRecordMapper.updateCameraDelRecord(cameraDelRecord);
    }

    /**
     * 批量删除点位删除记录
     * 
     * @param ids 需要删除的点位删除记录主键
     * @return 结果
     */
    @Override
    public int deleteCameraDelRecordByIds(Long[] ids)
    {
        return cameraDelRecordMapper.deleteCameraDelRecordByIds(ids);
    }

    /**
     * 删除点位删除记录信息
     * 
     * @param id 点位删除记录主键
     * @return 结果
     */
    @Override
    public int deleteCameraDelRecordById(Long id)
    {
        return cameraDelRecordMapper.deleteCameraDelRecordById(id);
    }
}
